//
//  DestinationModel.m
//  LT
//
//  Created by dllo on 16/5/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "DestinationModel.h"
#import "DesHot_countryModel.h"
#import "DescountryModel.h"
@implementation DestinationModel


//容错
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    
}

-(void)setHot_country:(NSMutableArray *)hot_country{
//先引hot头文件
    //方法1
    //便利构造器
    _hot_country = [NSMutableArray array];
   
    for (NSDictionary *dic in hot_country) {
        //建立hotModel
        DesHot_countryModel *hotModel = [[DesHot_countryModel alloc]init];
        [hotModel setValuesForKeysWithDictionary:dic];
        [_hot_country addObject:hotModel];
        
    }


}

-(void)setCountry:(NSMutableArray *)country{

    _country = [NSMutableArray array];
    for (NSDictionary *countryDic in country) {
        DescountryModel *countryModel = [[DescountryModel alloc]init];
        [countryModel setValuesForKeysWithDictionary:countryDic];
        [_country addObject:countryModel];
    }
    

}

@end
